home *** CD-ROM | disk | FTP | other *** search
- Path: gail.ripco.com!mambuhl
- From: mambuhl@ripco.com (Martin Ambuhl)
- Newsgroups: comp.lang.c
- Subject: Re: #include --> Question
- Date: 29 Feb 1996 21:44:11 GMT
- Organization: Ripco Communications, Inc.
- Message-ID: <4h56nb$7e2@gail.ripco.com>
- NNTP-Posting-Host: foley.ripco.com
-
- <Matt> mmartone@mysite.com <76002.702@CompuServe.COM> in
- <4gvp2c$sdr$1@mhafc.production.compuserve.com> asks:
-
- > How do i include a file with the #include statement? the
- >file is "c:\snappy\1.gif".
-
- The answer to your question is easy:
-
- #include "c:/snappy/1.gif"
-
- But, it is likely that this is _not_ what you want to do.
- The effect of `#include "file"' is the same as pasting `file' into your
- code at that point. Since this file is likely a binary image (although
- you could append a `.gif' to the name of anything), I would guess that
- you actually want to read it into a buffer.
-
-
- --
- * Martin Ambuhl net: mambuhl@ripco.com
- * Chicago, IL (USA)
-